<demo>示例2-一句话打开dialog(js的方式)</demo>
<template>
  <lc-button @click="showDialog">showDialog</lc-button>
</template>

<script lang="ts">
  import { openDialog } from '../../lib/hooks/openDialog'
  export default {
    setup() {
      // 一句话打开dialog
      const showDialog = ()=>{
        openDialog({
          title: '标题',
          content: '您好',
          query(){
            console.log('ok')
          },
          cancel(){
            console.log('取消')
          }
        })
      }
      return { showDialog}
    }
  }
</script>

<style scoped>

</style>
